
import context from './context'
import React, { useContext } from 'react'
export default function Son() {
    let { name, age, findMother } = useContext(context)
    return (
        <div>
            <h1>Son</h1>
            <div>Son---{name}</div>
            <div>Son---{age}</div>
            <button onClick={() => { findMother('Son---monther') }}>找妈妈</button>
        </div>
    )
}
